<?php if ($categories) : ?>
    <?php foreach ($categories as $category) : ?>
	<ul style="float:left;list-style-type: none;">
	    <li><a href="<?php echo $this->createUrl('category/view', array('name' => $category->name));?>"><?php echo $category->title; ?></a></li>	        
	    <?php $this->widget('application.widgets.CategoryRelation', array('model' => $category)); ?>	    
	</ul>
    <?php endforeach; ?>
<?php endif; ?>
